Skip to content

Conversation

@QingshuChen
Copy link
Contributor

@QingshuChen QingshuChen commented Mar 14, 2024

PR types

Others

PR changes

Others

Description

xpu支持修改默认的l3/gm的buffer大小。
XPU_CDNN_CLUSTER_PARALLEL_STREAM_NUMBER:使用多少个流
XPU_PADDLE_L3_SIZE{i}: 第i个流使用的l3大小
XPUAPI_DEFAULT_SIZE{i}:第i个流使用的gm大小

@paddle-bot
Copy link

paddle-bot bot commented Mar 14, 2024

你的PR提交成功,感谢你对开源项目的贡献!
请关注后续CI自动化测试结果,详情请参考Paddle-CI手册
Your PR has been submitted. Thanks for your contribution!
Please wait for the result of CI firstly. See Paddle CI Manual for details.

@paddle-bot paddle-bot bot added the contributor External developers label Mar 14, 2024
@QingshuChen QingshuChen force-pushed the 20240314 branch 2 times, most recently from 22efc95 to fbdd671 Compare March 14, 2024 11:35
zhupengyang
zhupengyang previously approved these changes Mar 15, 2024
Copy link
Contributor

@zhupengyang zhupengyang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@lj970926 lj970926 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@XiaociZhang XiaociZhang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM overall

} else {
// Optimization described in
// https://github.com/PaddlePaddle/Paddle/pull/54674
context_->set_option("XPUAPI_DEFAULT_SIZE", "1");

This comment was marked as resolved.

This comment was marked as resolved.

stype,
ignore_device_version=[core.XPUVersion.XPU1],
)
# for stype in support_types:
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个case不过,先注释,后续跟进

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

contributor External developers XPU

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants